using System;
using System.Data;
using System.Collections;
using System.Web;
using Auto.Web.Common;
using Auto.Data.Security;

namespace BaseSystem.Master
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_PreInit(object sender, EventArgs e)
        {
            //if (Session["User"] == null)
            //{
            //    Response.Redirect("Login.aspx");
            //}
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //Response.Redirect("Menutree.aspx");
            if (SessionBox.MenuStyle == "PanelBar")
            {
                Response.Redirect("Main.aspx", true);
            }
            Users u = SessionBox.User;
            if (u.IsTopSuper)
            {
                this.sysfrm.Attributes["style"] = "height: 20px;";
            }
            else
            {
                this.sysfrm.Attributes["style"] = "height: 0px;";
            }
        }
    }
}
